package com.sdweizan.sdk.bytedance.bean.payment.general;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseRequest;
import com.sdweizan.sdk.bytedance.constants.BdConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/*****
 * 注意：order_id 与 out_order_no 二选一
 * */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BdGeneralQueryOrderRequest implements BdBaseRequest {

  /** 开发者侧的订单号* */
  @JSONField(name = "out_order_no")
  private String outOrderNo;

  /** 交易订单号* */
  @JSONField(name = "order_id")
  private String orderId;

  @Override
  public String requestUri() {
    return BdConstants.OPEN_HOST + "/api/trade_basic/v1/developer/order_query";
  }
}
